< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03120402.xhp

(section: len) (bookmark: bm_id3154136)
Len function

Len関数

Len Function [Runtime]
Len 関数 [実行時](hd_id3154136.1)

Returns the number of characters in a string, or the number of bytes that are required to store a variable.
文字列中の文字数ないしは、変数の格納に必要となるバイト数を返します。(par_id3147576.2)

(/section: len)

Syntax:
構文:(hd_id3159177.3)

Len (Text As String)
Len (Text As String)(par_id3150669.4)

Return value:
戻り値:(hd_id3148473.5)

Long
ロング整数(par_id3143270.6)

Parameters:
パラメータ:(hd_id3147531.7)

Text: Any string expression or a variable of another type.
Text:文字列表式または、その他のタイプの変数。(par_id3147265.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3153360.9)

Sub ExampleLen
Sub ExampleLen(par_id3150792.10)

Dim sText as String
Dim sText as String(par_id3151211.11)

sText = "Las Vegas"
sText = "Las Vegas"(par_id3154125.12)

MsgBox Len(sText) REM Returns 9
MsgBox Len(sText) REM 戻り値は 9(par_id3156214.13)

End Sub
End Sub(par_id3125864.14)


< Prev / Next >